package com.jsbj.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsbj.user.entities.SysTenant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统租户表 Mapper 接口
 * </p>
 *
 * @author jsbj
 * @since 2022-02-22
 */
@Mapper
public interface SysTenantMapper extends BaseMapper<SysTenant> {

    List<SysTenant> getByUserId(String userId);

    List<String> selectQXTenantCode(@Param("userId") String userId);

    List<SysTenant> getByUserIdPage(String userId);

    List<String> selectQXTenantCodeAndCreate(@Param("userId") String userId);

    List<SysTenant> getAllTenantQx(@Param("userId")String userId, @Param("roleId")String roleId);
}
